Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> td, th { border: 1px solid black; } </style> </head> <body> <table id="myTable" style="border-collapse:collapse;"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$150</td> </tr> </table> <br> <button type="button" onclick="myFunction()">Return border collapse</button> <script> function myFunction() { alert(document.getElementById("myTable").style.borderCollapse); } </script> </body> <!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_style_bordercollapse2 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:24:56 GMT --> </html>
Result:
Try it Yourself - © w3schools.com